package com.hust.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hust.mapper.QualityMonitorMapper;
import com.hust.domain.QualityMonitor;
import com.hust.service.IQualityMonitorService;

import javax.annotation.Resource;

/**
 * 水质月监测数据Service业务层处理
 * 
 * @author hust
 * @date 2024-12-13
 */
@Service
public class QualityMonitorServiceImpl implements IQualityMonitorService 
{
    @Resource
    private QualityMonitorMapper qualityMonitorMapper;

    /**
     * 查询水质月监测数据
     * 
     * @param ID 水质月监测数据主键
     * @return 水质月监测数据
     */
    @Override
    public QualityMonitor selectQualityMonitorByID(Long ID)
    {
        return qualityMonitorMapper.selectQualityMonitorByID(ID);
    }

    /**
     * 查询水质月监测数据列表
     * 
     * @param qualityMonitor 水质月监测数据
     * @return 水质月监测数据
     */
    @Override
    public List<QualityMonitor> selectQualityMonitorList(QualityMonitor qualityMonitor)
    {
        return qualityMonitorMapper.selectQualityMonitorList(qualityMonitor);
    }

    /**
     * 新增水质月监测数据
     * 
     * @param qualityMonitor 水质月监测数据
     * @return 结果
     */
    @Override
    public int insertQualityMonitor(QualityMonitor qualityMonitor)
    {
        return qualityMonitorMapper.insertQualityMonitor(qualityMonitor);
    }

    /**
     * 修改水质月监测数据
     * 
     * @param qualityMonitor 水质月监测数据
     * @return 结果
     */
    @Override
    public int updateQualityMonitor(QualityMonitor qualityMonitor)
    {
        return qualityMonitorMapper.updateQualityMonitor(qualityMonitor);
    }

    /**
     * 批量删除水质月监测数据
     * 
     * @param IDs 需要删除的水质月监测数据主键
     * @return 结果
     */
    @Override
    public int deleteQualityMonitorByIDs(Long[] IDs)
    {
        return qualityMonitorMapper.deleteQualityMonitorByIDs(IDs);
    }

    /**
     * 删除水质月监测数据信息
     * 
     * @param ID 水质月监测数据主键
     * @return 结果
     */
    @Override
    public int deleteQualityMonitorByID(Long ID)
    {
        return qualityMonitorMapper.deleteQualityMonitorByID(ID);
    }
}
